#include <thread>
#include "../include/thread.h"
int Thread::generateId_ = 0;
void Thread::start()
{ 
    std::thread t(threadFunc_, threadId_);
    t.detach();
}

Thread::Thread(ThreadFunc threadFunc) : threadFunc_(threadFunc), threadId_(generateId_++)
{
}
int Thread::getThreadId()
{
    return threadId_;
}
Thread::~Thread()
{
}